package com.myschool.server.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "fees_paid")
public class FeesPaid extends BaseEntity {

	@Temporal(TemporalType.DATE)
	private Date date;

	@ManyToOne
	private User paidFor;

	@ManyToOne
	private Fees fees;

	@Column(length = 100, nullable = true)
	private String note;

	/**
	 * @return the fees
	 */
	public Fees getFees() {
		return fees;
	}

	/**
	 * @param fees
	 *            the fees to set
	 */
	public void setFees(Fees fees) {
		this.fees = fees;
	}

	/**
	 * @return the note
	 */
	public String getNote() {
		return note;
	}

	/**
	 * @param note
	 *            the note to set
	 */
	public void setNote(String note) {
		this.note = note;
	}

	/**
	 * @return the date
	 */
	public Date getDate() {
		return date;
	}

	/**
	 * @param date
	 *            the date to set
	 */
	public void setDate(Date date) {
		this.date = date;
	}

	/**
	 * @return the paidFor
	 */
	public User getPaidFor() {
		return paidFor;
	}

	/**
	 * @param paidFor
	 *            the paidFor to set
	 */
	public void setPaidFor(User paidFor) {
		this.paidFor = paidFor;
	}
}
